﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace WareHouse.Domain.ModelClass
{
    [SqlSugar.SugarTable("ProductType")]
    public class ProductType:AuditInfo
    {
        /// <summary>
        /// 产品类别主键
        /// </summary>
        [SqlSugar.SugarColumn(IsPrimaryKey =true)]
        public long ProductTypeId{ get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ?ProductTypeName { get; set; }
        /// <summary>
        /// 上级类别
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public long ? Pid { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = true)]
        public string ProductTypeDesc { get; set; }
        /// <summary>3
        /// 父级列表
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable =true)]
        public List<ProductType> ?Child { get; set; }
    }
}
